From b6cf438af6f2e68998cbc94a9b2c3f3a98461d2d Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 30 Nov 2006 17:09:27 +0000 Subject: [PATCH] (bug 1331) Add "next page" link to bottom of Special:Allpages in chunk mode This code is the stuff nightmares are made of. Nightmares that would make even David Gerard cry. --- RELEASE-NOTES | 1 + includes/SpecialAllpages.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3b514c1298..5a72c0bd96 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -228,6 +228,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN images, not horizontally. * Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php * Add AuthPluginSetup hook to override $wgAuth after configuration +* (bug 1331) Add "next page" link to bottom of Special:Allpages in chunk mode == Languages updated == diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index cfe8cb578c..3de8bd6512 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -272,12 +272,16 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) { if ( isset($dbr) && $dbr && ($n == $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) { $self = SpecialPage::getTitleFor( 'Allpages' ); $q = 'from=' . $t->getPartialUrl() . ( $namespace ? '&namespace=' . $namespace : '' ); - $out2 .= ' | ' . $sk->makeKnownLinkObj( $self, wfMsgHtml( 'nextpage', $t->getText() ), $q ); + $nextLink = $sk->makeKnownLinkObj( $self, wfMsgHtml( 'nextpage', $t->getText() ), $q ); + $out2 .= ' | ' . $nextLink; } $out2 .= "
"; } $wgOut->addHtml( $out2 . $out ); + if( isset( $nextLink ) ) + $wgOut->addHtml( '

' . $nextLink . '

' ); + } /** -- 2.20.1